package yaner.hotel.manager.resource.mapper;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import yaner.hotel.manager.common.dto.registration.RegistrationAddDto;
import yaner.hotel.manager.common.dto.registration.RegistrationUpdateDto;
import yaner.hotel.manager.common.vo.RegistrationVo;
import yaner.hotel.manager.resource.entity.Registration;

@Mapper
public interface IRegistrationMapper {
    IRegistrationMapper INSTANCE = Mappers.getMapper(IRegistrationMapper.class);

    RegistrationVo toVo(Registration registration);

    Registration toAddEntity(RegistrationAddDto registrationAddDto);

    Registration toUpdateEntity(RegistrationUpdateDto registrationUpdateDto);
}
